package com.egghiro.j2se.game.scardbattle.model.character.monster;

import com.egghiro.framework.j2se.game.core.SMath;
import com.egghiro.j2se.game.scardbattle.model.character.GameCharacter;

public class Slime extends Monster {

    public Slime() {
        super("スライム", 60, 0, SMath.nextInt(1, 50), SMath.nextInt(1, 100));
    }

    public Slime(String name, int hp, int mp, int exp, int gold) {
        super(name, hp, mp, exp, gold);
    }

    @Override
    public int attack(GameCharacter target) {
        int damage = SMath.nextInt(0, 30);
        target.subtractHp(damage);
        return damage;
    }

    @Override
    public int magic(GameCharacter target) {
        return 0;
    }
//    
//    @Override
//    public void act() {
//        // 1～10までの乱数を生成
//        int actNum = SMath.nextInt(1, 10);
//        int monsterAttackPoint = 0;
//        GameCharacter target = this.target();
//
//        // 通常攻撃
//        monsterAttackPoint = this.attack(target);
//        System.out.print(this.getName() + Message.MSG_ATTACK_START);
//        System.out.println(monsterAttackPoint + Message.MSG_MONSTER_ATTACK_END);
//    }

}
